package org.colin.service;

import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import org.colin.dictPojo.DSubject;

import java.util.HashMap;
import java.util.List;

/**
 * <p>
 * 题目表 服务类
 * </p>
 *
 * @author LiRuiFeng
 * @since 2021-01-09
 */
public interface DSubjectService extends IService<DSubject> {

    boolean addSubject(DSubject dSubject, List<JSONObject> videoList, List<JSONObject> imageList, List<JSONObject> recordingList, List<JSONObject> chooseList);

    boolean updateSubject(DSubject dSubject, List<JSONObject> videoList, List<JSONObject> imageList, List<JSONObject> recordingList, List<JSONObject> chooseList);

    HashMap selectSubjectById(Integer id);

    IPage<HashMap> selectSubjectIsPage(Page<HashMap> pageD, String param, Integer type, Integer language, String convType);

    Integer deleteBatchSubject(List<Integer> ids);
}
